# -*- coding: utf_8 -*-
# @Create   : 2021/9/3 14:26
# @Author   : yh
# @Remark   : 巡检记录View层
from mxsoftpy import View

from server.common.VideoManage.VideoQuality.inspection_record import InspectionRecordServer
from utils.public.params_method import check_params, pro_decode


class InspectionRecordSelect(View):
    def post(self):
        check_params(self.request.POST, ['begin_time', 'end_time'])
        param = pro_decode(**self.request.POST)
        # return _('查询巡检记录成功'), InspectionRecordServer().select(**self.request.GET)
        # res = InspectionRecordServer().select(**self.request.POST)

        return '查询巡检记录成功', InspectionRecordServer().select(**param)

